<?php
/**
 * Created by PhpStorm.
 * User: 我想有个家
 * Date: 2020/3/27
 * Time: 18:24
 */

namespace App;


use Hyperf\Logger\LoggerFactory;
use Hyperf\Utils\ApplicationContext;

class Log {
    /**
     * @param string $name
     * @return \Psr\Log\LoggerInterface
     */
    public static function get(string $name = 'app') {
        return ApplicationContext::getContainer()->get(LoggerFactory::class)->get($name);
    }
}
